package com.itheima;

public class Test {


    public static void main(String[] args) {
        final int i;
        i=10;
        final Demo demo= new Demo("老王");

       // demo = new Demo();

    }
}

final class Demo{
    final String  name;

    public Demo() {
        name="";
    }

    public Demo(String name) {
        this.name = name;
    }

    public void sing(){}
}

/*
class Demo2 extends Demo{


}
*/

class Demo3 {

    public final void sing(){


    }
}

class Demo4 extends Demo3{


}